<!DOCTYPE html>
<html lang="en">
	<head>
	  	<meta charset="UTF-8">
	    <meta name="renderer" content="webkit">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	    <title>建新街道移动办公 - E事通</title>
	    <link rel="stylesheet" href="/app/static/layui/css/layui.css">
	    <link rel="stylesheet" href="/app/static/styles/style.css">
	    <link rel="icon" href="image/code.png">
	    <script src="/app/static/scripts/jquery-1.9.1.js"></script>
	    <script type="text/javascript" src="/app/static//layui/layui.all.js"></script>
		<script type="text/javascript" src="/app/static/scripts/index.js"></script>
	</head>

	<body class="body">
		
		<a href="javascript:history.go(-1);" class="layui-btn">返回</a>	
		<form class="layui-form layui-form-labelw100" style="width: 500px;margin-top: 30px;">

			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>轮播标题</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>跳转链接</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>排序</label>
				<div class="layui-input-block">
					<input type="number" required lay-verify="required" placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>缩略图</label>
				<div class="layui-input-block">
					<div class="el-imgupload">
						<img src="" alt="" />
					</div>
				</div>
			</div>
		
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button type="reset" class="layui-btn layui-btn-primary">取消</button>
					<button class="layui-btn" lay-submit>提交</button>
				</div>
			</div>
		</form>
		
		
		
	
		<script type="text/javascript">
			var form = layui.form,
				layer = layui.layer,
				layedit = layui.layedit,
				upload = layui.upload, 
				laydate = layui.laydate
			
				form.render()
				
				
			upload.render({
				  elem: '.el-imgupload'
				  ,url: '/api/upload/'
				  ,choose: function(obj){
				    obj.preview(function(index, file, result){
				      //对上传失败的单个文件重新上传，一般在某个事件中使用
				      //obj.upload(index, file);
				    });
				  }
			});
			
			
			laydate.render({
			    elem: '#birth' //指定元素
			});

			laydate.render({
			    elem: '#remindTime' //指定元素
			});
			
		</script>
	</body>

</html>